package xyz.xtt.asset.service;

import java.util.Collection;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.asset.client.response.AssetStaticResponse;
import xyz.xtt.asset.entity.TblAssetStaticResource;

/**
 * <p>
 * 资产扩展信息表 服务类
 * </p>
 *
 * @author author
 * @since 2024-10-17
 */
public interface ITblAssetStaticResourceService extends IService<TblAssetStaticResource> {

	/**
	 * 资产静态资源详情
	 * 
	 * @param assertCode
	 * @return
	 */
	TblAssetStaticResource info(long assetId);

	/**
	 * 批量根据资产id查询资产资源信息
	 * 
	 * @param assetIds
	 * @return
	 */
	List<TblAssetStaticResource> infoWithAssetIds(Collection<Long> assetIds);

	/**
	 * 查资产的资源信息
	 * 
	 * @param assetId
	 * @return
	 */
	TblAssetStaticResource infoWithAssetIdByCache(Long assetId);

	/**
	 * 匹量获取资产静态资源信息
	 * 
	 * @param assetIds
	 * @return
	 */
	List<AssetStaticResponse> queryBatchAssetStaticResponse(Collection<Long> assetIds);

	/**
	 * 获取资产静态资源信息
	 * 
	 * @param assetId
	 * @return
	 */
	AssetStaticResponse queryTblAssetStaticResourceInfo(Long assetId);

	Boolean setCertificateUri(Long assetId, String certificateUri);

}
